cmake_minimum_required (VERSION 3.10)

project(example_thrift)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

custom_find_library(thrift)

if(thrift_FOUND)
    message(STATUS "build ${PROJECT_NAME}")
    aux_source_directory(. DIR_SOURCES)
    add_executable(${PROJECT_NAME} ${DIR_SOURCES})
endif()
